/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package e.z.blog.back.bean.base;

import java.util.Date;
import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.One;
import org.nutz.dao.entity.annotation.Table;

/**
 *
 * @author EnzoZhong
 */
@Table( "t_s_blog_bean_new" )
public class New {

        @Id
        @Column
        @Comment( "序列号" )
        private Long newId;
        @Column
        @Comment( "内容" )
        @ColDefine( type = ColType.TEXT )
        private String context;
        @Column
        @Comment( "创建时间" )
        private Date build;
        @Column
        @Comment( "留言地" )
        private String name;
        @Column
        private Long essayId;
        @One( target = Essay.class , field = "essayId" )
        private Essay essay;
}
